﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace olierFrm.DataBase.FrameWork.Plugin
{
    public class FrameWorkError : Exception
    {

        public string Param { get; set; }
        public string SqlID
        {
            get;
            set;
        }
        public string ErrorType
        {
            get;
            set;
        }
        public string ErrorObject
        {
            get;
            set;
        }
        public string Summary { get; set; }
        public string Msg
        {
            get
            {
                return "执行" + ErrorObject + "：" + SqlID + "对象时，出现异常，错误类型：" + ErrorType + "，错误提示：" + Summary;
            }
        }
        public override string Message
        {
            get
            {
                return Summary.ToString();
            }
        }
    }
}
